//
//  SVProgressHUDProtocol.swift
//  YYProject
//
//  Created by 陆文宇 on 2017/8/29.
//  Copyright © 2017年 陆文宇. All rights reserved.
//

import Foundation

protocol SVProgressHUDProtocol {
    
}

extension SVProgressHUDProtocol {
    
    func yy_showImage(image: UIImage, status: String?) {
        SVProgressHUD.show(image: image, status: status)
    }
    
    func yy_showStatusHUD(status: String? = "加载中...") {
        SVProgressHUD.showStatus(status)
    }
    
    func yy_showSuccessHUD(status: String?) {
        SVProgressHUD.showSuccess(with: status)
    }
    
    func yy_showErrorHUD(status: String?) {
        SVProgressHUD.showError(with: status)
    }
    
    func yy_dismissHUD() {
        SVProgressHUD.dismiss()
    }
    
}
